home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPDecoder.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  121 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPDecoder.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPDecoder_h__
  6. #define __gen_nsISOAPDecoder_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISchemaType; /* forward declaration */
  18.  
  19. class nsISOAPEncoding; /* forward declaration */
  20.  
  21. class nsIDOMElement; /* forward declaration */
  22.  
  23. class nsIVariant; /* forward declaration */
  24.  
  25. class nsISOAPAttachments; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsISOAPDecoder */
  29. #define NS_ISOAPDECODER_IID_STR "4c2e02ae-1dd2-11b2-b1cd-c79dea3d46db"
  30.  
  31. #define NS_ISOAPDECODER_IID \
  32.   {0x4c2e02ae, 0x1dd2, 0x11b2, \
  33.     { 0xb1, 0xcd, 0xc7, 0x9d, 0xea, 0x3d, 0x46, 0xdb }}
  34.  
  35. /**
  36.  * This interface supplies decoding of a specific
  37.  * part of a message XML DOM into appropriate objects
  38.  * for the script or application.
  39.  */
  40. class NS_NO_VTABLE nsISOAPDecoder : public nsISupports {
  41.  public: 
  42.  
  43.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPDECODER_IID)
  44.  
  45.   /**
  46.    * Decode the source DOM node
  47.    *
  48.    * @param aEncodings The encodings used to decode
  49.    *
  50.    * @param aEncodingStyleURI The encoding style
  51.    *
  52.    * @param aSource The DOM node to be decoded.
  53.    *
  54.    * @param aSchemaType The schema type of the source DOM node
  55.    *
  56.    * @param aAttachments Dispenses any attachments.
  57.    *
  58.    * @return The decoded variant, which is null if 
  59.    *   the operation failed or did not return a result.
  60.    */
  61.   /* nsIVariant decode (in nsISOAPEncoding aEncoding, in nsIDOMElement aSource, in nsISchemaType aSchemaType, in nsISOAPAttachments aAttachments); */
  62.   NS_IMETHOD Decode(nsISOAPEncoding *aEncoding, nsIDOMElement *aSource, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIVariant **_retval) = 0;
  63.  
  64. };
  65.  
  66. /* Use this macro when declaring classes that implement this interface. */
  67. #define NS_DECL_NSISOAPDECODER \
  68.   NS_IMETHOD Decode(nsISOAPEncoding *aEncoding, nsIDOMElement *aSource, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIVariant **_retval); 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  71. #define NS_FORWARD_NSISOAPDECODER(_to) \
  72.   NS_IMETHOD Decode(nsISOAPEncoding *aEncoding, nsIDOMElement *aSource, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIVariant **_retval) { return _to Decode(aEncoding, aSource, aSchemaType, aAttachments, _retval); } 
  73.  
  74. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  75. #define NS_FORWARD_SAFE_NSISOAPDECODER(_to) \
  76.   NS_IMETHOD Decode(nsISOAPEncoding *aEncoding, nsIDOMElement *aSource, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIVariant **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Decode(aEncoding, aSource, aSchemaType, aAttachments, _retval); } 
  77.  
  78. #if 0
  79. /* Use the code below as a template for the implementation class for this interface. */
  80.  
  81. /* Header file */
  82. class nsSOAPDecoder : public nsISOAPDecoder
  83. {
  84. public:
  85.   NS_DECL_ISUPPORTS
  86.   NS_DECL_NSISOAPDECODER
  87.  
  88.   nsSOAPDecoder();
  89.  
  90. private:
  91.   ~nsSOAPDecoder();
  92.  
  93. protected:
  94.   /* additional members */
  95. };
  96.  
  97. /* Implementation file */
  98. NS_IMPL_ISUPPORTS1(nsSOAPDecoder, nsISOAPDecoder)
  99.  
  100. nsSOAPDecoder::nsSOAPDecoder()
  101. {
  102.   /* member initializers and constructor code */
  103. }
  104.  
  105. nsSOAPDecoder::~nsSOAPDecoder()
  106. {
  107.   /* destructor code */
  108. }
  109.  
  110. /* nsIVariant decode (in nsISOAPEncoding aEncoding, in nsIDOMElement aSource, in nsISchemaType aSchemaType, in nsISOAPAttachments aAttachments); */
  111. NS_IMETHODIMP nsSOAPDecoder::Decode(nsISOAPEncoding *aEncoding, nsIDOMElement *aSource, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIVariant **_retval)
  112. {
  113.     return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115.  
  116. /* End of implementation class template. */
  117. #endif
  118.  
  119.  
  120. #endif /* __gen_nsISOAPDecoder_h__ */
  121.